<?php 
/**
 * 订单列表控制器
 */
class OrderListController extends AuthController{
	
	   private  $model;
	
		public  function __init(){
			parent::__init();
			$this->model = K('OrderList');
		}
		
		/**
		 * 显示订单详细列表
		 */
		 public function index(){
		 	$oid = Q('get.oid',0,'intval');
//			p($oid);
		 	$orderList = $this->model->where("gorder_oid={$oid}")->all();
			
//			p($orderList);
			$this->assign('orderList',$orderList);
		 	$this->display();
		 } 
		 
		 
		 
		 
		 
}

 ?>